<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>
<%@page import="com.wy.dao.ConsumerDao" %>
<%@page import="com.wy.form.ConsumerForm" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {color: #c97802}
.style2 {color: #976600}
-->
</style>
</head>



<%
//判断服务器form是否存在
if(session.getAttribute("form")==null){
out.print("<script language=javascript>alert('您已经与服务器断开，请重新登录！');window.location.href='index.jsp';</script>");
}
//网页计数器
Integer number=1;
if(application.getAttribute("number")!=null){
  number=(Integer)application.getAttribute("number");
  number++;
}
application.setAttribute("number",number);
//博主信息
com.wy.dao.ConsumerDao consumerDao=new com.wy.dao.ConsumerDao();
com.wy.form.ConsumerForm consumerForm1=(com.wy.form.ConsumerForm)session.getAttribute("form");
java.util.List consumerlist=consumerDao.getConsumerList("高级");
//万年日历的应用
%>

<script language="javascript" src="JS/onclock.js"></script>
<script language="javascript" src="JS/validate.js"></script>
<body onLoad="clockon(bgclock)">



<!--页面头部分1-->
<table width="800" height="29" border="0" align="center" cellpadding="0" cellspacing="0" background="images/head_01.jpg">
  <tr>
    <td width="667" valign="middle"><table width="487" height="21" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="32">&nbsp;</td>
        <td width="455" valign="bottom"><div id="bgclock" class="word_white"></div></td>
      </tr>
    </table></td>
    <td width="133" valign="top"><table width="112" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td height="17" valign="bottom"><div align="center"><span class="word_white">
          <a href="dealwith.jsp?sign=2" class="aaaaa">重新登录</a></span></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--页面头部分2-->
<table width="800" height="23" border="0" align="center" cellpadding="0" cellspacing="0" background="images/head_02.jpg">
  <tr>
    <td width="683">&nbsp;</td>
    <td width="117" valign="top">
      <table width="100" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="20" valign="bottom"><%=number%></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--页面头部分3-->
<table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/head_03.jpg" width="800" height="97"></td>
  </tr>
</table>
<!--页面头部分4-->
<table width="800" height="71" border="0" align="center" cellpadding="0" cellspacing="0" background="images/head_04.jpg">
  <tr>
    <td width="31">&nbsp;</td>
    <td width="640"><table width="619" border="0" align="center" cellpadding="0" cellspacing="0">
      <%
        for(int host=0;host<consumerlist.size();host++){
        com.wy.form.ConsumerForm consumerHostForm=(com.wy.form.ConsumerForm)consumerlist.get(host);
         %>
      <tr>
        <td  height="20"><span class="style1">博主信息</span></td>
        <td colspan="2">
          <%if(consumerForm1.getManageLevel().equals("高级")){%>
          <div align="right"><span class="style2">【</span><a href="backMainPage.jsp" class="in">进入后台</a><span class="style2">】</span></div>
          <%}%>
        </td>
      </tr>
      <tr>
        <td height="20"><span class="style3 style2">姓名：<%=consumerHostForm.getName()%></span></td>
        <td width="212"><span class="style3 style2">性别：<%=consumerHostForm.getSex()%></span></td>
        <td width="195"><span class="style3 style2">兴趣：<%=consumerHostForm.getInterest()%></span></td>
      </tr>
      <tr>
        <td height="20"><span class="style3 style2">QQ号码：<%=consumerHostForm.getQQNumber()%></span></td>
        <td><span class="style3 style2">E-Mail：<%=consumerHostForm.getEMail()%></span></td>
        <td><span class="style3 style2">主页：<%=consumerHostForm.getMainPage() %></span></td>
      </tr>
      <%} %>
    </table></td>
    <td width="129">&nbsp;</td>
  </tr>
</table>
<!--页面头部分5-->
<table width="800" height="26" border="0" align="center" cellpadding="0" cellspacing="0" background="images/head_05.jpg">
  <tr>
    <td width="37">&nbsp;</td>
    <td width="626">
      <%--marquee 设置轮播文字--%>
	         <marquee direction="left"  scrollAmount="1" scrollDelay="1" class="tdtd">
            <span class="style4 style1">欢迎您光临我的博客天空.</span>
      </marquee>	</td>
    <td width="137">&nbsp;</td>
  </tr>
</table>


</body>
</html>
